package com.briup.jd2407cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.jd2407cms.domain.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.jd2407cms.domain.extend.CategoryExtend;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
* @author 王杰_
* @description 针对表【cms_category】的数据库操作Service
* @createDate 2024-11-21 10:10:31
*/
public interface CategoryService extends IService<Category> {

    IPage<Category> queryByPageAndCondition(Integer pageNum,Integer pageSize,Integer parentId);
    List<CategoryExtend> queryAllParent();
    void add(Category category);
    List<Category> queryAllOneLevel();
    Category queryById(Integer id);
    void edit(Category category);
    void deleteById(Integer id);
    void deleteByIdAll(List<Integer> ids);
    void InsertInBatch(MultipartFile file);
    List<Category> queryAll();
    void export(HttpServletResponse response);
}
